﻿#include "FITKSpectraShearModulus.h"

namespace Acoustics
{
    FITKSpectraShearModulus::FITKSpectraShearModulus()
    {
        //初始化
        
    }

    FITKSpectraShearModulus::~FITKSpectraShearModulus()
    {

    }

    FITKAcousticsAbstractSpectra::AcousticsSpectraType FITKSpectraShearModulus::getSpectraType()
    {
        //返回频谱类型
        return FITKAcousticsAbstractSpectra::AcousticsSpectraType::ShearModulus;
    }

    double FITKSpectraShearModulus::getDBDefaultCoefficient()
    {
        return 2e-5;
    }

    bool FITKSpectraShearModulus::isRealValue()
    {
        return true;
    }

    void FITKSpectraShearModulus::initData()
    {
        //实部数据默认值初始化
        int count = this->getSpectraCount();
        double defaultValue = 100000;
        for (int i = 0; i < count; i++)
        {
            this->setSpectraValueAt(i, defaultValue);
        }
    }
}

